package com.tjshop.android;

import android.content.Context;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
import com.tjshop.android.mcv.GlobeVars;
import com.tjshop.android.model.CouponDetail;
import com.tjshop.android.util.HttpUtil;
import com.tjshop.android.util.MD5Utils;

import org.json.JSONException;
import org.json.JSONObject;

public class TuwenDetailActivity extends AbsBaseActionBarActivity {

	private WebView mWebView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_tuwen_details);
		String url = "";

		try {
			Bundle bundle = getIntent().getExtras();
			url = bundle.getString("url");
		} catch (Exception e) {
			e.printStackTrace();
		}

		mWebView = (WebView) findViewById(R.id.tuwen_detail_content);
		WebSettings webSettings = mWebView.getSettings();
		webSettings.setJavaScriptEnabled(true);
		webSettings.setUseWideViewPort(true);
		webSettings.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
		webSettings.setLoadWithOverviewMode(true); 
		mWebView.loadUrl(url);
	}

}
